package com.leinao.project.model;

import java.io.Serializable;

/**
 * 项目
 */
public class ProjectHistory extends Project implements Serializable {
	
	
    /**
	 * 
	 */
	private static final long serialVersionUID = -2593586098255882744L;
	

	/**
     * 项目ID
     */
    private Long projectId;

    public void initProjectHistory(Project project) {
        setProjectId(project.getId());
        setProjectName(project.getProjectName());
        setConfig(project.getConfig());
        setType(project.getType());
        setFilePath(project.getFilePath());
        setNotes(project.getNotes());
        setProfile(project.getProfile());
        setAlgorithm(project.getAlgorithm());
        setLanguage(project.getLanguage());
        setGitRepository(project.getGitRepository());
        setGitTag(project.getGitTag());
        setGitTimestamp(project.getGitTimestamp());
        setDelFlag(project.getDelFlag());
        setOrigin(project.getOrigin());
        setUserId(project.getUserId());
        setUpdateTime(System.currentTimeMillis());
        setCreateTime(System.currentTimeMillis());
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }
}